<?php  
class ControllerCommonTermofuse extends Controller {
	public function index() {
		$this->document->setTitle($this->config->get('config_title'));
		$this->document->setDescription($this->config->get('config_meta_description'));
		
		$this->data['heading_title'] = $this->config->get('config_title');
		
		$this->load->model('catalog/information');
		
		
		$this->data['data'] = array();
		$information_info = $this->model_catalog_information->getInformation(56);
		
		
		$this->data['info_desc'] = html_entity_decode($information_info['description'], ENT_QUOTES, 'UTF-8');
		$this->data['info_short'] = html_entity_decode($information_info['short'], ENT_QUOTES, 'UTF-8');; 	
		$this->data['info_title'] = $information_info['title']; 	
		$this->data['info_image'] = HTTP_IMAGE.$information_info['image']; 	
		
		$this->document->setTitle($this->data['info_title']);
		$this->document->setDescription($this->data['info_short']);
		
		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/common/term_of_use.tpl')) {
			$this->template = $this->config->get('config_template') . '/template/common/term_of_use.tpl';
		} else {
			$this->template = 'default/template/common/term_of_use.tpl';
		}
		
		$this->children = array(
			'common/column_left',
			'common/column_right',
			'common/content_top',
			'common/content_bottom',
			'common/footer',
			'common/header'
		);
										
		$this->response->setOutput($this->render());
	}
}
?>